
export const setStore = (name, value) => {
    if (!name) return;
    if (typeof value !== 'string') {
        value = JSON.stringify(value)
    }
    window.localStorage.setItem(name, value)
}
export const ip = '//' + document.location.hostname
export const getStore = (name) => {
    if (!name) return;
    return window.localStorage.getItem(name)
}

export const removeStore = (name) => {
    if (!name) return;
    window.localStorage.removeItem(name)
}

